package com.skyun.watchmanager;

import android.bluetooth.BluetoothAdapter;
import android.content.Intent;
import android.os.Bundle;
import android.support.annotation.Nullable;

import me.skyun.androidarch.welcome.SplashActivity;

/**
 * Created by skyun on 17/8/22.
 */

public class TicSplashActivity extends SplashActivity {
    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        getImageView().setImageResource(R.drawable.splash);
    }

    @Override
    protected int getSleepTime() {
        return 500;
    }

    @Override
    public void gotoNextActivity() {
        Intent intent;
//        if (BluetoothAdapter.getDefaultAdapter().getName().equals("Honor 5A")) {
//            intent = new Intent(this, TicMainActivity.class);
//            intent = new Intent(this, ServerActivity.class);
//        } else {
//            intent = new Intent(this, TicMainActivity.class);
//            intent = new Intent(this, ServerActivity.class);
//        }
        intent = new Intent(this, TicMainActivity.class);
        startActivity(intent);
        finish();
    }
}
